package com.tgy.util.email;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author tianguiyin
 * @version 1.0
 * @date 2022/5/24 18:00
 */
@Component
@PropertySource("classpath:email.properties")      //指定配置文件
@ConfigurationProperties(prefix = "qq")         //指定前缀
@Data
public class EmailResource {
    private String sender;
    private String auth;
}
